<?php

	/*
		Static Class for generating HTML elements.
		Only includes tag that would cause reduntant coding.	 	
	*/
	
	class Html
	{
		// Wraps a text in a div tag with optional class name
		protected function Div($content, $class = NULL)
		{
			if ($class == NULL)
				return "<div>" . $content . "</div>";
			else
				return "<div class='$class'>" . $content . "</div>";
		}
		
		// Wraps a text in a p tag with optional class name
		protected function P($content, $class = NULL)
		{
			if ($class == NULL)
				return "<p>" . $content . "</p>";
			else
				return "<p class='$class'>" . $content . "</p>";
		}
		
		// Wraps a text in a h tag with optional size and class name
		protected function H($content, $size, $class = NULL)
		{
			if ($class == NULL)
				return "<h" . $size . ">" . $content . "</h" . $size . ">";
			else
				return "<h" . $size . " class='$class'>" . $content . "</h" . $size . ">";
		}
	}
